// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Runtime.CompilerServices;
using System.Threading.Tasks;

namespace eLoop.Netty;

interface IScheduledTask
{
    bool Cancel();

    PreciseTimeSpan Deadline { get; }

    Task Completion { get; }

    TaskAwaiter GetAwaiter();
}